<%@ page language="java" contentType="text/html; charset=UTF8" pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<meta name="categories" content="JavaEE,Spring,SpringMVC">
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>SpringMVC加载静态资源的方法</title>
</head>
<body>
	<div class="article-wrapper">
		<article>
			<h1 class="title">SpringMVC加载静态资源的方法</h1>
			<hr />
			<section>
			<p>SpringMVC加载静态资源，最常见有三种方式。</p>
			<p>1. web.xml中配置default servlet</p>
			<p>2. 配置&lt;mvc:resource/&gt;</p>
			<p>3. 配置&lt;mvc:default-servlet-handler/&gt;</p>
			</section>
		</article>
	</div>
</body>
</html>